<?php

namespace app\admin\validate;

use think\Validate;

class MenuValidate extends Validate
{
    protected $rule =   [
        'name'  => 'require',
        'app'  => 'require',
        'controller'  => 'require',
        'action'  => 'require',  
    ];
    
    protected $message  =   [
        'name.require' => '名称必须',
        'app.require' => '模块必须',
        'controller.require' => '控制器必须',
        'action.require' => '方法名必须',
    ];
}